﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;

#nullable disable

namespace ZH.GPT.Domains.User.Response
{
    /// <summary>
    /// 用户DTO_输出
    /// </summary>
    public partial class UserPDTO
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 是否是管理员
        /// </summary>
        public sbyte? IsAdmin { get; set; }

        /// <summary>
        /// 是否是超级管理员
        /// </summary>
        public sbyte? IsSuperAdmin { get; set; }

        /// <summary>
        /// 是否活跃
        /// </summary>
        public sbyte? IsActive { get; set; }

        /// <summary>
        /// 公司ID
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? Created { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? Modified { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public Guid? DepartmentId { get; set; }

        /// <summary>
        /// ToString
        /// </summary>
        /// <returns></returns>
        public override string ToString() => JsonConvert.SerializeObject(this);
    }
}
